import http from "./http";
// /role/list
export const getRoleListApi = (
  params: AdminListParams,
  signal: AbortSignal
): Promise<MyResponse<TabelListResponse<Role>>> =>
  http.get("/role/list", { params, signal });

export const getMenuByRoleIdApi = (roleId: number): RSP<Menu[]> =>
  http.get(`/role/listMenu/${roleId}`);
